package com.iwinding.ladygg.ui.adapter;

import android.content.Context;

import java.util.List;

/**
 * Created by hezhiyong on 2017/3/17.
 */

public abstract class BaseAdapter<T> extends android.widget.BaseAdapter{

    protected Context mContext;
    protected List<T> mList;

    private BaseAdapter(Context context) {
        this.mContext = context;
    }

    public BaseAdapter(Context mContext,List<T> mList){
        this.mContext = mContext;
        this.mList = mList;
    }


    @Override
    public int getCount() {
        return mList.size();
    }

    @Override
    public Object getItem(int position) {
        return mList.get(position);
    }

    @Override
    public long getItemId(int position) {
        return position;
    }


}
